package com.greensoftcodeplus.redislog.configure;


import com.greensoftcodeplus.redislog.component.MyBeanPostProcessor;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("com.greensoftcodeplus.redislog")
//@AutoConfigureAfter(name="myShiroPlusAutoConfigure")
public class MyRedisLogPluginAutoConfingure {

    @Bean
   // @ConditionalOnBean(LettuceConnectionFactory.class)
    public MyBeanPostProcessor myBeanPostProcessor( ApplicationContext applicationContext){
         return  new MyBeanPostProcessor(applicationContext );
    }
}
